/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package vn.edu.vttu;

import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Date;
import java.util.Vector;
import javax.swing.JTable;
import javax.swing.table.AbstractTableModel;
import javax.swing.table.DefaultTableModel;
import javax.swing.table.TableModel;

/**
 *
 * @author Administrator
 */
public interface RMI_Interface extends java.rmi.Remote {

    public TableModel login(String _user, String _pass) throws java.rmi.RemoteException;
    
    public Vector selectNhanVien() throws java.rmi.RemoteException;
    public Vector selectKhachHang() throws java.rmi.RemoteException;
    public Vector selectDichVu() throws java.rmi.RemoteException;
    public Vector loadLoaiphong() throws java.rmi.RemoteException;
    public Vector cbbphong(String loaiphong) throws java.rmi.RemoteException;
    public Vector loadcobNhanVien(String nhanvien) throws java.rmi.RemoteException;
    public Vector Loadcbbphong() throws java.rmi.RemoteException;
    
    public boolean insertAccount(String user, String pass, int idNV) throws java.rmi.RemoteException;
    public boolean insertTaiKhoan(String username, String pass, int idNV, int daxoa)throws java.rmi.RemoteException;
    public boolean insertNhanVien(String hoten, String ngaysinh, int gioitinh, String diachi, String sdt, String email, String cmnd, String ngaylam, String ghichu) throws java.rmi.RemoteException;
    public boolean insertKhachHang(String hoten,String diachi,String sdt,String cmnd,String ngaysinh,int gioitinh) throws java.rmi.RemoteException;
    public boolean insertSudungDV(int idphong, int iddv,int soluong) throws java.rmi.RemoteException;
    public boolean insertPhong(String tenPhong, String vitri,int loaiPhong) throws java.rmi.RemoteException;
    public boolean insertDichVu(String tendv, int dongia) throws java.rmi.RemoteException;
    public boolean insertLoaiPhong(String tenLoaiphong, int dongia) throws java.rmi.RemoteException;
    public boolean insertThietBi(String tenthietbi, String xuatxu) throws java.rmi.RemoteException;
    
    public boolean UpdateNhanVien(int manv, String hoten, String ngaysinh, int gioitinh, String diachi, String sdt, String email, String cmnd, String ngaylam, String ghichu) throws java.rmi.RemoteException;
    public boolean updateTaiKhoan(int id,String username, String pass, int idNV, int daxoa)throws java.rmi.RemoteException;
    public boolean UpdateKhachHang(int id, String hoten,String diachi,String sdt,String cmnd,String ngaysinh,int gioitinh) throws java.rmi.RemoteException;
    public boolean updateSudungDV(int id,int idDV, int soluong)throws java.rmi.RemoteException;
    public boolean updatePhong(int idphong,String tenPhong,String vitri,int loaiphong) throws java.rmi.RemoteException;
    public boolean updateDichVu(int idDichVu,String tenDichVu,int dongia) throws java.rmi.RemoteException;
    public boolean updateLoaiPhong(int idLoai,String tenLoai,int dongia) throws java.rmi.RemoteException;
    public boolean updateThietBi(int idthietbi,String tenthietbi,String xuatxu) throws java.rmi.RemoteException;
    
    public boolean DeleteNhanVien(int manv) throws java.rmi.RemoteException;
    public boolean DeleteKhachHang(int makh) throws java.rmi.RemoteException;
    public boolean DeleteSuDungDV(int masddv) throws java.rmi.RemoteException;
    public boolean DeletePhong(int idPhong) throws java.rmi.RemoteException;
    public boolean DeleteDichVu(int idDichvu) throws java.rmi.RemoteException;
    public boolean DeleteLoaiPhong(int idDichvu) throws java.rmi.RemoteException;
    public boolean DeleteThietBi(int idThietBi) throws java.rmi.RemoteException;
    
    
    public TableModel loadDataNhanVien() throws java.rmi.RemoteException;
    public TableModel loadDataTaiKhoan() throws java.rmi.RemoteException;
    public TableModel loadKh() throws java.rmi.RemoteException;
    public TableModel loadsudung(int idphong) throws java.rmi.RemoteException;
    public TableModel LoadTenKH(int idphong) throws java.rmi.RemoteException;
    public TableModel LoadDV() throws java.rmi.RemoteException;
    public TableModel LoadLoaiPhong() throws java.rmi.RemoteException;
    public TableModel LoadThietBi() throws java.rmi.RemoteException;    
    public TableModel LoadDanhSachPhongDaThue() throws java.rmi.RemoteException;    
    public TableModel LoadThongTinPhong(String phong) throws java.rmi.RemoteException;    
    public TableModel LoadThuePhong() throws java.rmi.RemoteException;    
    
    
    public TableModel kiemtraphongtrong(int idphong) throws java.rmi.RemoteException;
    public TableModel tinhtiendichvu(int idphong) throws java.rmi.RemoteException;
    public TableModel tinhtienphong(int idphong) throws java.rmi.RemoteException;
        
    
    public AbstractTableModel timKiem(String key) throws java.rmi.RemoteException;
    public TableModel timKiemTaiKhoan(String key) throws java.rmi.RemoteException;
    public TableModel timKiemKachHang(String key) throws java.rmi.RemoteException;
    public TableModel TimPhong(String key) throws java.rmi.RemoteException;
    public TableModel TimDichVu(String key) throws java.rmi.RemoteException;
    public TableModel TimThietBi(String key) throws java.rmi.RemoteException;
    
    public TableModel loadPhong() throws java.rmi.RemoteException;
    public TableModel loadPhongCoKhach() throws java.rmi.RemoteException;
    
    public boolean nhanphong(int idphong, int idkh, String ngaydat, String ngaynhan, String ngaytra, int idNV) throws java.rmi.RemoteException;
    public boolean traphong(int idphong) throws java.rmi.RemoteException;
    
    
    
    public TableModel ThongKeDichVu(int dichvu) throws java.rmi.RemoteException;
    public TableModel ThongKeDichVu(String tungay, String denngay) throws java.rmi.RemoteException;
    public TableModel ThongKeDichVu(String tungay, String denngay, int dichvu) throws java.rmi.RemoteException;
    public TableModel ThongKeTienDichVu(String tungay, String denngay, int dichvu) throws java.rmi.RemoteException;
    public TableModel ThongKeTienDichVu(int dichvu) throws java.rmi.RemoteException;
    public TableModel ThongKeTienDichVu(String tungay, String denngay) throws java.rmi.RemoteException;
    
    public TableModel KiemTraThemTaiKhoan(int manhanvien) throws java.rmi.RemoteException;
    public TableModel KiemTraUsername(String user) throws java.rmi.RemoteException;
    
    
    public String thongtindb() throws java.rmi.RemoteException;
    
   
}
